import time

from concurrent.futures import ThreadPoolExecutor


def wait_on_a():
    print('start a')
    time.sleep(5)
    print("over")  # a will never complete because it is waiting on b.
    return 6


executor = ThreadPoolExecutor(max_workers=2)
executor.submit(wait_on_a)
